package com.banma.dao.mapper;

import java.util.List;
import com.banma.common.entity.UserEntity;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

@CacheConfig(cacheNames = "users")
public interface UserMapper {
	int save(UserEntity user);

	@Cacheable(key = "#p0")
	UserEntity selectById(Integer id);

	int updateById(UserEntity user);

	int deleteById(Integer id);

	List<UserEntity> queryAll();
}
